write a c program to calculate the power of a number